package com.shensi.common.core.enums;

import com.shensi.common.core.utils.IResultCode;

public enum ErrorCode implements IResultCode {

    SUCCESS(1000, "请求成功"),
    FAILED(1001, "请求失败"),
    VALIDATE_ERROR(1002, "参数校验失败"),

    SYS_NO_LOGIN(1004, "未登录"),


    USER_REPEAT_USERNAME(2001, "重复的用户名"),
    USER_REPEAT_PHONENUMBER(2002, "重复的手机号"),

    STATION_NOT_FOUND(3001, "油站id未找到"),
    STATION_NO_STAFF(3002, "油站未设置员工"),

    ENTERPRISE_NOT_FOUND(3003, "油站id未找到"),

    ;


    private int code;
    private String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
